import sys
import os
import json


data = {
	"folders": [
		{
			"path": ""
		}
	],
	"settings": {}
}



def Create_Vscode(dir):
    outfilepath = os.path.join(dir,"vscode.code-workspace")
    outpath = dir
    data['folders'][0]['path'] = outpath
    
    with open(file=outfilepath,mode="w+",encoding="utf-8") as file:
        file.write(json.dumps(data,indent=4))
        
    



if __name__ == "__main__" :
    print("\t\t\t","-" * 50)   
    print(f"\t\t\t\t提示 : pre_gen_project.py 【Start】!\n")
    print(f"\t\t\t\t提示 : 当前脚本没有做任何的处理动作!")
    currentDir = os.getcwd()
    print(f"\t\t\t\t提示 : pre_gen_project.py 【End】!")
    print("\t\t\t","-" * 50)  
    print("\n\n")
